<!DOCTYPE html>
<!--
     SPDX-License-Identifier: CC-BY-SA-4.0
     SPDX-FileCopyrightText: 2020 seL4 Project a Series of LF Projects, LLC.
-->
<!-- Page last generated 2025-02-20 03:16:15 +0000 -->
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>seL4 11.0.x-compatible | seL4 docs</title>

    <!-- Our stylesheet and theme stylesheet.  Contains bootstrap. -->
    <link rel="stylesheet" href="/assets/css/style.css" type="text/css">
    <!-- Font awesome -->
    <link href="https://use.fontawesome.com/releases/v5.0.8/css/all.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
    <!-- Pygments syntax highlighting  -->
    <link rel="stylesheet" href="/assets/css/highlighting/trac.css" type="text/css">
    <link rel="icon" type="image/x-icon" href="/assets/favicon.ico"><script defer data-domain="docs.sel4.systems"
	    src="https://analytics.sel4.systems/js/script.js"></script></head>

  <body class="container-fluid">

    



<header>
  <ul class="row menu">
    <li class="col-xs-12 col-md-2" >
            <a href="https://sel4.systems" class="skip-icon">
              <img class="img-responsive" src="/assets/logo-text-white.svg" alt="seL4 logo" />
            </a>
    </li>
    <li class="col-xs-12 col-md-10 menu">
      <nav aria-label="Banner links">
        <h2><a href="/Resources" />Resources</h2>
        <h2><a href="/processes" />Contributing</a></h2>
        <h2><a href="/projects" />Projects</h2>
        <h2><a href="/Tutorials" />Tutorials</h2>
        <iframe title="DuckDuckGo search bar" src="https://duckduckgo.com/search.html?site=docs.sel4.systems&prefill=Search%20sel4.systems" style="overflow:hidden;margin-bottom:10px; padding:0;height:40px;float:right;border-width: 0px"></iframe>
      </nav>
    </li>
  </ul>
  <div class="clear"></div>
  
<div class="breadcrumbs bootstrap hidden-sm-down">
  <nav class="sel-breadcrumb" aria-label="Breadcrumb" >
    <ol class=" list-unstyled" vocab="http://schema.org/" typeof="BreadcrumbList">
      
      
        

        

        <li class="breadcrumb-item" property="itemListElement" typeof="ListItem">
            <a property="item" typeof="WebPage" href="/">
              <span property="name"><b>seL4 Docs</b></span>
            </a>
            <meta property="position" content="1" />
        </li>
      
        

        

        <li class="breadcrumb-item" property="itemListElement" typeof="ListItem">
            <a property="item" typeof="WebPage" href="/updates/sel4runtime">
              <span property="name"><b>seL4 run-time Recent Updates</b></span>
            </a>
            <meta property="position" content="2" />
        </li>
      
        

        
          <li class="breadcrumb-item" property="itemListElement" typeof="ListItem">
            <span property="name">seL4 11.0.x-compatible</span>
            <meta property="position" content="3" /></li>
          
    </ol>
  </nav>
  <nav class="sel-version" aria-label="Current Versions">
    <ol class="list-unstyled">
      <li class="list-unstyled text-right" style="margin-left:auto; padding:0rem 0rem;">
        Current versions:</li>
      <li class="list-unstyled text-right">
      <a href="/releases/sel4/13.0.0"><b>seL4-13.0.0</b></a></li>
      <li class="list-unstyled text-right">
      <a href="/releases/microkit/1.4.1"><b>microkit-1.4.1</b></a></li>
      <li class="list-unstyled text-right">
      <a href="/releases/camkes/camkes-3.11.0"><b>camkes-3.11.0</b></a></li>
      <li class="list-unstyled text-right">
      <a href="/releases/capdl/0.3.0"><b>capDL-0.3.0</b></a></li>
      </ol>
  </nav>
  <div class='clear'></div>
</div>


</header>

    <main>
      <div class="row">
  <div class="hidden-xs col-sm-4 col-md-3 col-lg-2">
    


<div class="sidebar">
















</div>

  </div>
  <div class="content col-sm-8 col-md-6 col-lg-7 main">
    <h1 id="updates-to-sel4runtime-from-sel4-101x-to-110x">Updates to sel4runtime from seL4 10.1.x to 11.0.x</h1>

<ul>
  <li>Created <code class="language-plaintext highlighter-rouge">sel4runtime</code> project to be a runtime for running a C or C-compatible process, i.e. one with a C-like main, in a minimal seL4 environment.
    <ul>
      <li>Added seL4 roottask runtime entry points for: AARCH32, AARCH64, IA32, x86_64, RISC-V 32-bit and RISC-V 64-bit with supporting documentation for calling conventions.</li>
      <li>Added regular runtime entry points for non-roottask new processes for the above architectures.</li>
      <li>Added CMake rules for replacing musllibc’s CRT files with a CMake object library.</li>
      <li>Added CMake configuration option, <code class="language-plaintext highlighter-rouge">Sel4RuntimeRootStack</code>, for setting Roottask’s initial stack size.</li>
      <li>Create runtime datastructure containing:
        <ul>
          <li>process name likely read from <code class="language-plaintext highlighter-rouge">argv[0]</code>.</li>
          <li>AUX vector with additional seL4 specific AUX values:
            <ul>
              <li><code class="language-plaintext highlighter-rouge">AT_SEL4_BOOT_INFO</code>: <code class="language-plaintext highlighter-rouge">seL4_BootInfo</code> pointer in current vspace.</li>
              <li><code class="language-plaintext highlighter-rouge">AT_SEL4_IPC_BUFFER_PTR</code>: IPC buffer pointer in current vspace of initial thread.</li>
              <li><code class="language-plaintext highlighter-rouge">AT_SEL4_TCB</code>: TCP capability <code class="language-plaintext highlighter-rouge">seL4_CPtr</code> to initial thread’s TCB object.</li>
            </ul>
          </li>
          <li>Environment vector.</li>
          <li>Bootinfo pointer to be initialized with bootinfo address from AUX vector.</li>
          <li>ELF headers to be initialized with info from AUX vectors.</li>
          <li>Initial thread information:
            <ul>
              <li>Thread local storage image information.</li>
              <li>Cap to TCB if given in AUX vectors.</li>
              <li>IPC buffer: if given in AUX vectors.</li>
            </ul>
          </li>
        </ul>
      </li>
      <li>Add support for calling constructors and destructors.</li>
      <li>Add support for managing threads’ static TLS regions.</li>
      <li>set a global <code class="language-plaintext highlighter-rouge">__sysinfo</code> pointer if <code class="language-plaintext highlighter-rouge">AT_SYSINFO</code> is set in AUX vector.</li>
      <li>Call <code class="language-plaintext highlighter-rouge">main()</code> with required <code class="language-plaintext highlighter-rouge">argc</code> and <code class="language-plaintext highlighter-rouge">argv</code> arguments.</li>
      <li>Support for setting TLS variables of threads remotely.</li>
      <li>Call <code class="language-plaintext highlighter-rouge">seL4_DebugNameThread</code> if the runtime has a process name and the initial thread has a TCB cap
and IPC buffer set.</li>
      <li>Add <code class="language-plaintext highlighter-rouge">Findsel4runtime.cmake</code> module for importing as CMake module.</li>
    </ul>
  </li>
</ul>


  </div>







  
  
<div class="sidebar-toc hidden-xs hidden-sm col-md-3 col-lg-3">
  
    <ul class="section-nav">
    	<h2> The seL4 run-time </h2> 
        <li>
          
          <a style="" class="" href="/projects/sel4runtime/">
            Documentation homepage
          </a>
        </li>

















    
        <h3>Repositories</h3>
    
        <li>
          <a class="" href="https://github.com/seL4proj/sel4runtime">
            sel4runtime
          </a>
        </li>









  







    
        <h3>Recent Updates</h3>
    
        <li>
          <a style=" font-weight: bold; " href="/updates/sel4runtime/11.0.x.html">
            seL4 11.0.x-compatible
          </a>
        </li>

    </ul>

</div>


</div>

    </main>
    


<footer class="site-footer">

  <h2 class="footer-heading">seL4 docs</h2>

  <div class="footer-col-wrapper">

    <div class="col-md-2">
      



<ul class="social-media-list">
  <li><a href="https://github.com/sel4"><i class="fab fa-github"></i> <span class="username">sel4</span></a></li><li><a href="https://github.com/sel4proj"><i class="fab fa-github"></i> <span class="username">sel4proj</span></a></li>
</ul>

    </div>

    <div class="col-md-8">
      <ul class="list-unstyled">
        <li>
          This site is for displaying seL4 related documentation.  Pull requests are welcome.
        </li>
        
          <li>
            Site last updated: Fri Feb 7 10:17:38 2025 +1100 ee78c8857c
          </li>
          <li>
          </li>
        
      </ul>
    </div>
    <div class="col-md-2">
<a href="https://github.com/seL4/docs/blob/master/content_collections/_updates/sel4runtime/11.0.x.md">View page on GitHub</a>
      <br />
      <a href="https://github.com/seL4/docs/edit/master/content_collections/_updates/sel4runtime/11.0.x.md">Edit page on GitHub</a>
      <br />
      <a href="/sitemap">Sitemap</a>
    </div>

  </div>

</footer>

  </body>
</html>
